home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / os2 / tinyed20.zip / TKEYS.DEF < prev   
Text File  |  1992-08-05  |  9KB  |  215 lines

  1. /*****************************************************************************
  2.  *                                                                           *
  3.  *                             T - A Tiny Editor                             *
  4.  *                                                                           *
  5.  *****************************************************************************
  6.  *                                                                           *
  7.  * This is an example of an editor definition file used with the TKEY        *
  8.  * program to customise the T editor.                                        *
  9.  *                                                                           *
  10.  * If you are going to customise T it is a good idea to make a copy of this  *
  11.  * file with another name and alter that, rather than making your changes    *
  12.  * directly to this file.                                                    *
  13.  *                                                                           *
  14.  * Then to customise simply use the command:                                 *
  15.  *                                                                           *
  16.  *     TKEY YOUR.DEF T.EXE     for the PC-DOS version                        *
  17.  * or  TKEY YOUR.DEF T2.EXE    for the OS/2 version                          *
  18.  *                                                                           *
  19.  * Refer to the documentation for full explanations of all the features that *
  20.  * be customised.                                                            *
  21.  *                                                                           *
  22.  *****************************************************************************
  23.  *                (C) Copyright IBM Corporation 1987, 1992                   *
  24.  *****************************************************************************/
  25.  
  26.  
  27. /*---- COLOUR DEFINITIONS ---------------------------------------------------*
  28.  *                                                                           *
  29.  * Two sets of colours are defined.  The first set (the "mono" colours) are  *
  30.  * used with true monochrome displays or with any colour display if a MODE   *
  31.  * BW40 or MODE BW80 is issued.                                              *
  32.  *                                                                           *
  33.  * The second set of colours (the "colour" colours) are used for the normal  *
  34.  * colour display modes.                                                     *
  35.  *                                                                           *
  36.  * The spelling "color" can also be used for those who prefer it that way.   *
  37.  *---------------------------------------------------------------------------*/
  38.  
  39. colour of mono data          = white on black
  40. colour of mono mark          = black on white
  41. colour of mono shadow cursor = underlined bright white on black
  42. colour of mono command line  = black on white
  43. colour of mono status line   = white on black
  44. colour of mono help line     = white on black
  45. colour of mono message line  = bright white on black
  46.  
  47. colour of colour data          = bright white on blue
  48. colour of colour mark          = bright white on brown
  49. colour of colour shadow cursor = black on white
  50. colour of colour command line  = bright white on turquoise
  51. colour of colour status line   = bright turquoise on blue
  52. colour of colour help line     = bright white on blue
  53. colour of colour message line  = yellow on blue
  54.  
  55.  
  56. /*---- KEYBOARD DEFINITIONS -------------------------------------------------*
  57.  *                                                                           *
  58.  * T has a large number of "keyboard functions" that are accessed by assign- *
  59.  * ing them to a user definable key.  For a complete list of the functions   *
  60.  * and keys to which they may be assigned refer to the reference section of  *
  61.  * the T documentation.                                                      *
  62.  *                                                                           *
  63.  * The following two keyboard functions are not assigned to any key:         *
  64.  *   file                                                                    *
  65.  *   next line                                                               *
  66.  *---------------------------------------------------------------------------*/
  67.  
  68. // The actions associated with the Function keys ...
  69.  
  70. key f1  = help
  71. key f2  = save
  72. key f3  = quit
  73. key f4  = safe file
  74. key f5  = user
  75. key f7  = name
  76. key f8  = edit
  77. key f9  = undo
  78. key f10 = next file
  79. key f11 = previous file
  80. key a-f10 = previous file
  81.  
  82.  
  83. // The cursor and data movement keys ...
  84.  
  85. key s-f1 = scroll left
  86. key s-f2 = scroll right
  87. key s-f3 = scroll up
  88. key s-f4 = scroll down
  89.  
  90. key tab   = tab
  91. key s-tab = backtab
  92.  
  93. key up    = up
  94. key down  = down
  95. key left  = left
  96. key right = right
  97. key home  = start of line
  98. key end   = end of line
  99. key pgup  = page up
  100. key pgdn  = page down
  101.  
  102. key c-right = next word
  103. key c-left  = previous word
  104. key c-home  = top of file
  105. key c-end   = bottom of file
  106. key c-pgup  = top of screen
  107. key c-pgdn  = bottom of screen
  108.  
  109.  
  110. // Character and line inserting and deleting ...
  111.  
  112. key ins         = insert toggle
  113. key del         = delete character
  114. key backspace   = backspace
  115. key enter       = new line
  116. key c-enter     = insert line
  117. key c-backspace = delete line
  118. key c-del       = truncate line
  119.  
  120.  
  121. // Line marking functions ...
  122.  
  123. key a-l = mark line
  124. key a-c = copy mark
  125. key a-d = delete mark
  126. key a-m = move mark
  127. key a-u = clear mark
  128. key a-y = top of mark
  129. key a-e = bottom of mark
  130.  
  131. key a-f7 = mark left
  132. key a-f8 = mark right
  133.  
  134.  
  135. // Miscellaneous other keys ...
  136.  
  137. key esc = command toggle
  138.  
  139. key a-x = escape
  140.  
  141. key a-s = split line
  142. key a-j = join line
  143. key a-a = adjust line
  144. key a-r = repeat line
  145. key a-t = truncate line
  146.  
  147. key a-f = repeat find
  148.  
  149.  
  150. // T also allows a single character to be assigned to a key.  This is used
  151. // here to access the single line box characters.
  152.  
  153. key a-1 = ascii 192             // Bottom left corner
  154. key a-2 = ascii 193             // Bottom intersection
  155. key a-3 = ascii 217             // Bottom right corner
  156. key a-4 = ascii 195             // Left intersection
  157. key a-5 = ascii 197             // Centre intersection
  158. key a-6 = ascii 180             // Right intersection
  159. key a-7 = ascii 218             // Top left corner
  160. key a-8 = ascii 194             // Top intersection
  161. key a-9 = ascii 191             // Top right corner
  162. key a-- = ascii 196             // Horizontal line
  163. key a-= = ascii 179             // Vertical line
  164.  
  165. // A single character can also be assigned to a key by listing the character
  166. // in quotes, for example ...
  167.  
  168. key a-b = "\"                   // Set alt-b to a back-slash
  169.  
  170.  
  171. // The default action of all the other user definable keys is "nothing",
  172. // for example ...
  173.  
  174. key a-q = nothing
  175.  
  176.  
  177. /*---- SPECIAL DEFINITIONS --------------------------------------------------*
  178.  *                                                                           *
  179.  * Special editor functions and settings.                                    *
  180.  *                                                                           *
  181.  * These special settings are divided into two sections.  The first section  *
  182.  * contains those items that most people might want to alter, the second     *
  183.  * section contains the more obscure items that most people will want to     *
  184.  * leave set to the defaults.                                                *
  185.  *---------------------------------------------------------------------------*/
  186.  
  187. // Section One ...
  188.  
  189. set command toggle   = command          // Start on the command line.
  190. set insert toggle    = replace          // Start up in overtype mode.
  191.  
  192. set exact match      = on               // Match exact case when searching.
  193.  
  194. set help command     = "T THELP.HLP"    // You may need to specify the full
  195.                                         // drive/path to access the help file.
  196.  
  197. set user command     = "DOS"            // Define a DOS function key.
  198.  
  199. set margin           = off              // No right margin column.
  200.  
  201. set help line =                         // A help line to show the F-keys.
  202. "F1=Help F2=Save F3=Quit F4=File F5=DOS          F7=Name F8=Edit F9=Undo F10=Next"
  203.  
  204.  
  205. // Section Two ...
  206.  
  207. set command recall   = 10               // Save the last 10 commands
  208. set tab spacing      = 8                // Set tabs every 8 spaces
  209. set tab expand       = on               // Expand tabs to spaces on loading
  210. set automatic indent = on               // Auto indent on new lines
  211. set final eof        = on               // Terminate files with a hex 1A (EOF)
  212. set keyboard         = automatic        // Use Enhanced Keyboard if possible
  213. set cga snow         = automatic        // Remove "snow" from CGA screens
  214.  
  215.